clc
clear
load('1_A.mat')
for i = 2:421
    data(i-1,1) = cell2mat(CrewRosters(i,2));
    s = cell2mat(CrewRosters(i,3)); 
    s1 = s(2:end-1);
    s = cell2mat(CrewRosters(i,4)); 
    s2 = s(2:end-1);
    data(i-1,2) = t2n2_A(s1,s2);
    s = cell2mat(CrewRosters(i,6)); 
    s1 = s(2:end-1);
    s = cell2mat(CrewRosters(i,7)); 
    s2 = s(2:end-1);
    data(i-1,3) = t2n2_A(s1,s2);
    s = cell2mat(CrewRosters(i,9)); 
    s = s(2:end-1);
    if (s == 'C')
        data(i-1,4) = 1;
    elseif s =='F'
        data(i-1,4) = 2;
    else
        data(i-1,4) = 3;
    end
end

for i = 1:420
    switch data(i,4)
        case 1 
            plot([data(i,2),data(i,3)],[data(i,1),data(i,1)],'r','LineWidth',3);
            hold on;
            continue;
        case 2
            plot([data(i,2),data(i,3)],[data(i,1),data(i,1)],'g','LineWidth',3);
            hold on;
            continue;
        otherwise
            plot([data(i,2),data(i,3)],[data(i,1),data(i,1)],'b','LineWidth',3);
            hold on;
            continue;
    end
end
axis([11 26 0 22])

